import { Module } from '@nestjs/common'
import { AppController } from './app.controller'
import { AppService } from './app.service'
import { AuthModule } from './auth/auth.module'
import { UserModule } from './user/user.module'
import { LoggerModule } from './logger/logger.module'
import { TypeOrmModule } from '@nestjs/typeorm'
import { SQLCONF } from 'config'

@Module({
  imports: [
    TypeOrmModule.forRoot(SQLCONF),
    AuthModule,
    UserModule,
    LoggerModule
  ],
  controllers: [AppController],
  providers: [AppService]
})
export class AppModule {}
